﻿using ModelTest002.Data;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace ModelTest002.Models
{
    public class MusicStoreDblnitializer:System.Data.Entity.DropCreateDatabaseAlways<MusicStoreDB>
    {
        protected override void Seed(MusicStoreDB context)
        {
            context.Artists.Add(new Artist { Name = "青芒果" });

            context.Genres.Add(new Genre { Name = "流行", Description = "流行音乐很耐史" });



            base.Seed(context);
        }
    }
}